home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1122 / 1122.xpi / chrome / tabmixplus.jar / content / tabmixplus / tab / text.xml < prev   
Extensible Markup Language  |  2008-08-16  |  890b  |  31 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings id="tmp_textbindings"
  4.           xmlns="http://www.mozilla.org/xbl"
  5.           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  6.           xmlns:xbl="http://www.mozilla.org/xbl">
  7.  
  8.   <binding id="tmp-text-link" extends="chrome://global/content/bindings/text.xml#text-link">
  9.     <handlers>
  10.       <handler event="click" phase="capturing" button="0">
  11.       <![CDATA[
  12.          var href = event.target.getAttribute('href');
  13.          if (!href)
  14.             return;
  15.  
  16.          eval("this.open ="+this.open.toString().replace(
  17.             'win.open(uri.spec);',
  18.             'win.TMP_openURL(uri.spec, event);'
  19.          ).replace(
  20.             'win.open(href);',
  21.             'win.TMP_openURL(href, event);'
  22.          ));
  23.  
  24.          this.open(event);
  25.       ]]>
  26.       </handler>
  27.     </handlers>
  28.   </binding>
  29.  
  30. </bindings>
  31.